]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: emit a signal when we're showing or hiding
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 1 Mar 2013 02:16:54 +0000 (21:16 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 1 Mar 2013 18:17:51 +0000 (13:17 -0500)
This will be useful in a future commit.

https://bugzilla.gnome.org/show_bug.cgi?id=687787

js/ui/messageTray.js

index 3699ec273af1185f381255d8029688f8e4ba4260..14c55db6319fd1e32e2a92fd7e4e8dc8ed800c2f 100644 (file)
@@ -2348,6 +2348,7 @@ const MessageTray = new Lang.Class({
             return false;
         }
 
+        this.emit('showing');
         this._tween(this.actor, '_trayState', State.SHOWN,
                     { y: -this.actor.height,
                       time: ANIMATION_TIME,
@@ -2398,6 +2399,7 @@ const MessageTray = new Lang.Class({
         // is distracting, so hide it immediately in case it was visible.
         this._summaryBoxPointer.actor.hide();
 
+        this.emit('hiding');
         this._tween(this.actor, '_trayState', State.HIDDEN,
                     { y: 0,
                       time: ANIMATION_TIME,